<%--
  Created by IntelliJ IDEA.
  User: zkt
  Date: 2023/9/23
  Time: 18:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <meta charset="UTF-8">
        <title>注册成功</title>

        <script>
            window.onload=function(){
                var div=document.getElementById("time");
                var time=5;
                var timer=setInterval(function(){
                    if(time==0){
                        location.href="/register_loginServlet";
                    }else{
                        div.innerHTML=""+time+"";
                        time--;
                    }
                },1000)
            }
        </script>
        <style>
            div{
                margin-top: 15px;
            }

            #main {
                position: absolute;
                width: 420px;
                height: 200px;
                left: 50%;
                top: 50%;
                margin-left: -210px;
                margin-top: -100px;
            }

            #time {
                font-size: 25px;
                text-align: center;
                color: red;
            }

            .boxs {
                font-size: 25px;
                text-align: center;
                margin: 15px auto;
            }

            #font {
                font-size: 20px;
                text-align: center;
            }
        </style>
    </head>
    <body>
        <div id="main">
            <div>
                <span class="boxs">	注册成功！</span>
            </div>
            <div>
        <span class="boxs">
            本页面将在<span id="time">5</span>秒之后跳转到登录页面！
        </span>
            </div>
            <div>
        <span id="font">
            如未成功跳转，请<a href="/register_loginServlet">点击这里</a>
        </span>
            </div>
        </div>
    </body>
</html>
